package org.jeecg.modules.jiucxldj.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.jiucxldj.entity.AgJiucxldjResource;
import org.jeecg.modules.jiucxldj.entity.AgJiucxldj;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 纠察巡逻登记
 * @Author: jeecg-boot
 * @Date:   2020-07-14
 * @Version: V1.0
 */
public interface IAgJiucxldjService extends IService<AgJiucxldj> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(AgJiucxldj agJiucxldj,List<AgJiucxldjResource> agJiucxldjResourceList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(AgJiucxldj agJiucxldj,List<AgJiucxldjResource> agJiucxldjResourceList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	void startFlow(AgJiucxldj agJiucxldj, LoginUser loginUser);

	void complateTask(LoginUser loginUser, String taskId, Integer status, String memo);

	void applyAgin(AgJiucxldj agJiucxldj);

	IPage<AgJiucxldj> myApplyList(Page<AgJiucxldj> page, LoginUser user, AgJiucxldj agJiucxldj);

	IPage<AgJiucxldj> myTodoTasks(Page<AgJiucxldj> page, LoginUser user, AgJiucxldj agJiucxldj);

	IPage<AgJiucxldj> myDoneTasks(Page<AgJiucxldj> page, LoginUser user, AgJiucxldj agJiucxldj);

    void applyAgain(AgJiucxldj agJiucxldj, LoginUser user);
}
